package com.woniu.houtai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.houtai.entity.Shop;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 09:45:58
 */
public interface ShopService extends IService<Shop> {
    //新增
    Integer insert(String name,String detail,String imgSrc,Integer businessId);
    // 更新
    Integer update(Integer id,String name,String detail,String imgSrc,Integer businessId);
    // 根据id查询
    Shop selectById(Integer id);
    // 根据businessId查询
    Page<Shop> selectByBusinessId(Integer currentPage, Integer pageSize,Integer businessId);

    Shop selectByBusinessIdAndName(Integer businessId,String name );

    List<Shop> selectByOnlyBusinessId(int businessId);
}
